import request from '@/utils/request'

// 查询电子卡列表
export function listAppElectronicCard(query) {
  return request({
    url: '/app/manager/appElectronicCard/list',
    method: 'get',
    params: query
  })
}

// 查询电子卡详细
export function getAppElectronicCard(id) {
  return request({
    url: '/app/manager/appElectronicCard/' + id,
    method: 'get'
  })
}

// 新增电子卡
export function addAppElectronicCard(data) {
  return request({
    url: '/app/manager/appElectronicCard',
    method: 'post',
    data: data
  })
}

// 修改电子卡
export function updateAppElectronicCard(data) {
  return request({
    url: '/app/manager/appElectronicCard',
    method: 'put',
    data: data
  })
}

// 删除电子卡
export function delAppElectronicCard(id) {
  return request({
    url: '/app/manager/appElectronicCard/' + id,
    method: 'delete'
  })
}
